package com.vchello.service.file;

import java.util.List;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.vchello.bean.file.Folder;

/**
 * 
 * @author power
 *
 */
public interface FolderService extends IService<Folder>{

	List<Folder> findFolderByUserId(int userId, Folder folder);
	
	List<Folder> findFolderByParentId(int parentId);
	
	Page<Folder> findPageFolderByUserId(Page<Folder> page, int userId, Folder folder);
	
	Page<Folder> findPageChildrenFolder(Page<Folder> page, int parentId, Folder folder);
	
	Integer saveFolder(Folder folder);
	
	Folder findFolderById(int id);
	
	Integer updateFolder(Folder folder);
	
	boolean deleteFolder(Folder folder);
	
	Folder findByProjectIdAndParentIdAndUserId(int projectId, int parentId, int userId);
	
	Folder findProjectFoldByUserId(int userId);
	
	Folder findProjectInvestigateFoldByUserId(int userId);

	boolean updateFolderByProjectId(int proId, String proName);
	
	List<Folder> findProjectList();
	
	List<Folder> findProjectList2();
	
}
